export default {
	data() {
		return {
			share: {
				title: '智途校园',
				path: '/pages/index/index',
			}
		}
	},
	onShareAppMessage(res) {
		return {
			title: this.share.title,
			path: this.share.path,
			success(res) {
				uni.showToast({
					title: '分享成功'
				})
			},
			fail(res) {
				uni.showToast({
					title: '分享失败',
					icon: 'none'
				})
			}
		}
	},
	onShareTimeline(){
	    return {
	    	title: this.share.title,
	    	path: this.share.path,
	    	success(res) {
	    		uni.showToast({
	    			title: '分享成功'
	    		})
	    	},
	    	fail(res) {
	    		uni.showToast({
	    			title: '分享失败',
	    			icon: 'none'
	    		})
	    	}
	    }
	  }
}